package com.ruiwen.im.common.until;

import java.util.UUID;

/**
 * @author admin
 */
public class UserIdUtil {

    public static Integer getUUIDInUserId() {
        Integer orderId = UUID.randomUUID().toString().hashCode();
        //String.hashCode() 值会为空
        orderId = orderId < 0 ? -orderId : orderId;
        return orderId;
    }

}

